package com.ruoyi.flowable.config;

import org.flowable.common.engine.impl.cfg.IdGenerator;
import org.springframework.stereotype.Component;

import java.util.UUID;

@Component("idGenerator")
public class RouYiIdGenerator implements IdGenerator {
    @Override
    public String getNextId() {
        String uuid = UUID.randomUUID().toString();
        return "ry:" + uuid.replaceAll("-", "");
    }
}
